// remap jQuery to $
(function($){

    function replaceHtml (el, html) {
        var oldEl = typeof el === "string" ? document.getElementById(el) : el;
        /*@cc_on // Pure innerHTML is slightly faster in IE
            oldEl.innerHTML = html;
            return oldEl;
        @*/
        var newEl = oldEl.cloneNode(false);
        newEl.innerHTML = html;
        oldEl.parentNode.replaceChild(newEl, oldEl);
        /* 
         * Since we just removed the old element from the DOM, return a reference
         * to the new element, which can be used to restore variable references.
         * */
        setTimeout('testeTimeout()',1000);
        return newEl;
    }
    
    $.isMobile = function() {
        var UA = navigator.userAgent;
        if(UA.match(/Android/i) ||
           UA.match(/Iphone/i) ||
           UA.match(/Ipod/i) ||
           UA.match(/WebOS/i) )
        {
            return true;
        }
        return false;
    }

})(jQuery);
